Welcome, Guest.

Category:Variable Overflow


Variable Overflow

No, really. I meant to do that!

Variable Overflow refers to a situation where a variable wraps around from it's maximum value to it's minimum value or the other way around. While this is (inherently) not a bug, it can cause issues to games that do not factor this when manipulating variable data.

As a point of reference:

Hex Numeric Value
Ranged - Unsigned
Numeric Value
Range - Signed
Byte 0x00 0 -> 255 -128 -> 127
Integer 0x0000 0 -> 65535 -32768 -> 32767

AGI variables are unsigned bytes and Sierra SCI0 games use signed integers. Sometimes, the negative values in SCI0 variables can have implications for games.

    Sierra On-line games are subject to their own copyrights. All rights reserved.
    Website concept and scripts created by: Kuro-chan
    Police Quest II Space Quest III Zeliard
    Welcome, Guest.